<?php  
$email = $_POST['email'];  
$to = "info@w3rapid.com";  
$from = "$email";  
$subject = "subject line tester";  
$msg ="Name: ".$_POST['name']."\nEmail: ".$_POST['email']."\nMessage: ".$_POST['message'])) echo "ok";  
else echo "error";  
?>